
/**
 * 路由表
 */

import Index from './components/index/index';

export default function ( router ) {
	
	router.map({
		'/': {
			component: Index
		},
		
		//秒杀订单（收货地址空页面）
		'/seckill-shipping-address-empty': {
			component: function ( resolve ) {
				require(['./components/seckill-shipping-address-empty/index'], resolve)
			}
		},
		//秒杀订单（支付成功提示页面）
		'/seckill-pay-success': {
			component: function ( resolve ) {
				require(['./components/seckill-pay-success/index'], resolve)
			}
		},
		//秒杀订单（收货地址列表）
		'/seckill-shipping-address-list': {
			component: function ( resolve ) {
				require(['./components/seckill-shipping-address-list/index'], resolve)
			}
		},
		'/seckill-edit': {
			component: function ( resolve ) {
				require(['./components/seckill-edit/index'], resolve)
			}
		},
		//秒杀确认订单
		'/seckill-confirm-order':{
			component:function(resolve){
				require(['./components/seckill-confirm-order/index'],resolve)
			}
		},
		// 秒杀详情
		'/seckill-details':{
	            component:function(resolve){
	            		require(['./components/seckill-details/index'],resolve)
	            }
		},
		'*': {
			component: function ( resolve ) {
				require(['./components/notFile'], resolve)
			}
		}
	});
	
}
